﻿<u:UObject x:Class="UTable.Tests.UListViewTest"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:u="clr-namespace:UTable.Objects.Controls;assembly=UTable.Core"
    Height="400" Width="350">
    <u:UObject.Resources>
        <DataTemplate x:Key="List2Tempalate">
            <u:UGrid Background="Aqua" Height="48">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="80"/>
                    <ColumnDefinition Width="80"/>
                    <ColumnDefinition Width="120"/>
                </Grid.ColumnDefinitions>
                <u:UTextBlock Text="{Binding Path=Name}" Grid.Column="0" VerticalAlignment="Center"/>
                <u:UTextBlock Text="{Binding Path=Country}" Grid.Column="1" VerticalAlignment="Center"/>
                <u:UCheckBox IsChecked="{Binding Path=Paid}" Grid.Column="2" VerticalAlignment="Center">Paid</u:UCheckBox>
            </u:UGrid>
        </DataTemplate>
    </u:UObject.Resources>
    <Grid>
        <Border BorderThickness="4" BorderBrush="White" Margin="20,64,20,12" CornerRadius="4">
            <u:UListBox x:Name="MyList" ItemTemplate="{StaticResource List2Tempalate}"/>
        </Border>
    </Grid>
</u:UObject>
